//
//  BCPrictureCaptchaController.h
//  GSBlockChain
//
//  Created by guoshikeji_a on 2018/12/10.
//  Copyright © 2018 guoshikeji. All rights reserved.
//

#import "BCWindowContentController.h"

NS_ASSUME_NONNULL_BEGIN

typedef void(^PrictureCaptchaCompleteBlcok)(NSString *pictureCaptcha);

/**
 发送验证码时需要图片验证的控制器
 */
@interface BCPrictureCaptchaController : BCWindowContentController

/**
 * !@brief 发送验证码时需要图片验证
 * @param sendType 邮箱或手机
 * @param account 邮箱或手机账户
 * @param title 显示title ：请输入图中验证字符
 * @param placehodler 输入框的placeholder
 * @param submitTitle 确定发送的title
 * @param captchaLength 验证字符长度
 * @param fromController 来自于那个
 * @paarm complete 完成回调
 */
+ (void)showCaptcha:(BCaptchaSendType)sendType
            account:(NSString *)account
              title:(NSString *)title
        placeholder:(NSString *)placehodler
        submitTitle:(NSString *)submitTitle
      captchaLength:(NSInteger)length
     fromController:(UIViewController *)fromController
           complete:(PrictureCaptchaCompleteBlcok)complete;

@end

NS_ASSUME_NONNULL_END
